package nlp.anaylsis;

import java.util.ArrayList;
import java.util.List;

import nlp.dao.MessageDao;
import nlp.model.Message;

public class wordFreq {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		List<Message> msgList=new ArrayList<Message>();
		
		MessageDao msgDao=new MessageDao();
		
		msgList=msgDao.selectMessageByUId(0);

		for(Message msg:msgList.subList(0, 20)){
			String text=msg.getText();
			System.out.println(msg.getText());
			System.out.println("--------------------------------------------------");
			TermTokens.qieCi(text);
			System.out.println("\n**************************************************");
		}
		
	}

}
